<?php


namespace app\utils;


class DateTime
{
    public function date2timestamp($date)
    {
        return strtotime($date);
    }

    public function timestamp2date($timestamp, $format = 'Y/m/d')
    {
        return date($format, $timestamp);
    }
}